package com.service.impl;

import com.dao.OrderDao;
import com.dao.impl.OrderDaoImpl;
import com.pojo.Order;
import com.service.OrderService;

import java.util.List;

public class OrderServiceImpl implements OrderService {
    private OrderDao dao = new OrderDaoImpl();

    @Override
    public boolean addOrder(Order order) {
        return dao.addOrder(order)>0;
    }

    @Override
    public boolean deleteByID(String id) {
        return dao.deleteByID(id)>0;
    }

    @Override
    public List<Order> findByUserID(String user_ID) {
        return dao.selectByUserID(user_ID);
    }
}
